{{include file='layout/header.tpl'}}

{{include file='form/search.tpl'
  action=$_param.page
  value=$_param.get.s|default
}}

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

<table class="table_list">
<thead>
<tr>
<th>{{$smarty.config.name}}({{$smarty.config.kana}})</th>
<th>{{$smarty.config.nickname}}</th>
<th>{{$smarty.config.gender}}</th>
<th>{{$smarty.config.type}}</th>
<th>{{$smarty.config.same}}</th>
<th>{{$smarty.config.note}}</th>
<th>{{$smarty.config.update_date}}</th>
</tr>
</thead>
{{foreach $data.list as $v}}
{{$category_array = $v->_category|pgstr2ary}}
<tr>
<td><a href="{{$_param.page}}/{{$v->post_id}}">{{$v->name}}</a>({{$v->kana}})</td>
<td>{{$v->nickname}}</td>
<td>{{$smarty.config[$v->type|getParameterLabel:$smarty.const.HITO_GENDER_PARAMS:$smarty.const.HITO_GENDER_LABELS]}}</td>
<td>
{{********* unit *******}}{{if $v->type eq 1}}
<a href="{{$_param.page}}/unit/{{$v->post_id}}">{{$smarty.config[$v->type|getParameterLabel:$smarty.const.HITO_TYPE_PARAMS:$smarty.const.HITO_TYPE_LABELS]}}[{{$v->_unit}}]</a>
{{********* other ******}}{{else}}
{{$smarty.config[$v->type|getParameterLabel:$smarty.const.HITO_TYPE_PARAMS:$smarty.const.HITO_TYPE_LABELS]}}
{{/if}}
</td>
<td>{{$v->note}}</td>
<td>{{$v->editor_note}}</td>
<td class="small">{{$v->update_date->format('Y-m-d H:i:s')}}</td>
</tr>
{{/foreach}}
</table>

<a href="{{$_param.page}}/0">{{$smarty.config.newpost}}</a><br/>

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

{{include file='layout/footer.tpl'}}